<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";		
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>劳务工薪酬查询</title>
    
    <c:import url="/liger/liger.jsp"></c:import>
    <style type="text/css">
    .tlayout{width:100%;height:100%;border:0px;}
	.tlayout td{Vertical-align:top;}
    </style>
    
    <script type="text/javascript">
    
    function f_edit(id,employeeId){
    	var url = "${pageContext.request.contextPath}/hrController.do?wbInfo&Id="+id+"&employeeId="+employeeId;
    	$.ligerDialog.waitting("数据进行中,请稍后...");
    	$("#wbIframe").attr("src",url);
  		$.ligerDialog.closeWaitting();
    }
    
    function f_del(employeeId){
    
    }
    </script>
  </head>
  
  <body onload="init()" onmousemove="mousemove();" onmouseup="mouseup();">
  	<c:set var="path" value="${pageContext.request.contextPath}/hrController.do?wbList"></c:set>
  	<table class="tlayout" cellspacing=1 cellpadding=0>
  	<tr>
  	<td>
  		<form action="${path}" method="post" name="theForm">
	     <table width="100%"  border=0 cellspacing=1 cellpadding=0 class="tinfo">
 
	     <tr>
	     <Th>员工编号：</Th><td><input type="text" name="employeeId"></td>
	     <Th>员工姓名：</Th><td><input type="text" name="employeeName"></td>
	     <Td></Td><td></td>
	     </tr>
	     <tr>
	     	<td colspan="6" class="tr">
	     		<input type="button" onclick="theForm.submit();" value=" 查 询 "/>
	     	</td>
	     </tr>
	     </table>
	     </form>
	     
	     <table id="mytable" width="100%"  border=0 cellspacing=1 cellpadding=0 class="list" >
	     <thead>
	    	<tr>
	    	<th>序号</th>
	    	<th>员工编号</th>
	    	<th>员工姓名</th>
	    	<th>考核得分</th>
	    	<th>绩效等级</th>
	    	<th>系数</th>
	    	<th>导入时间</th>
	    	<th>备注</th>
	    	</tr>
	    <thead>
	    	<c:forEach items="${list}" var="list" varStatus="index">
	    		<tr onmouseover="this.style.background='yellow';" onmouseout="this.style.background='#ffffff'">
	    		<td>${(page.pageNumber-1)*page.perPageRow+index.index+1}</td>
	    		<td>${list.employeeId }</td>
	    		<td>${list.employeeName}</td>
	    		<td>${list.khScore}</td>
	    		<td>${list.khLevel}</td>
	    		<td>${list.khPer}</td>
	    		<td title="${list.createDate}"><fmt:formatDate value="${list.createDate}" pattern="yyyy-MM-dd hh:mm:ss"/></td>
	    		<td>${list.remark}</td>
	    		<td align="center">
	    		<input type="button" value="编辑" onclick="f_edit('${list.id}','${list.employeeId }');">
	    		<input type="button" value="删除" onclick="f_del('${list.id}','${list.employeeId }');">
	    		</td>
	    		</tr>
	    	</c:forEach>
	    </table>
	    
	    <div style="width:100%;text-align:right;">
	    	<a href="${path}&pageNumber=1">首页</a>
		    <a href="${path}&pageNumber=${page.pageNumber-1}">上一页</a>
			<a href="${path}&pageNumber=${page.pageNumber+1}">下一页</a>
			<a href="${path}&pageNumber=${page.totlePageNumber}">尾页</a>
			共 ${page.pageNumber}/${page.totlePageNumber }  页
	    </div>
		
  	</td>
  	
  	<td width="10" >
  	</td>
  	
  	<td width="280" style="border-left:thin solid 1px #004080;">
  		<iframe id="wbIframe" width="100%" height="100%" frameborder=0 src="${pageContext.request.contextPath}/hr/hr_wbInfo.jsp"/>
  	</td>
  	</tr>
    </table>
    
  </body>
</html>



